

public String ghello(String s) {
	return "hello " + s + ", this is groovy";
}

public void testit(jsobject) {
    println '==';
	String x = '<li gid="NA">----</li>';
	println x;
	try {
	  jsobject.add_widget(x, 1, 1, 1, 1);
	} catch (Throwable t) {
		t.printStackTrace();
	}
	println 'ok'
}

public String testData() {
	String data = """
	  [
		 {
            col: 1,
            row: 1,
            size_x: 2,
            size_y: 2,
            gid: "C00001",
            ctype: "TButton",
            cname: "abc"
        },
        {
            col: 3,
            row: 1,
            size_x: 1,
            size_y: 2,
            gid: "C00002",
            ctype: "TButton",
            cname: "abc"
        },
        {
            col: 4,
            row: 1,
            size_x: 1,
            size_y: 1,
            gid: "C00003",
            ctype: "TButton",
            cname: "abc"
        },
        {
            col: 2,
            row: 3,
            size_x: 3,
            size_y: 1,
            gid: "C00004",
            ctype: "TButton",
            cname: "abc"
        },
        {
            col: 1,
            row: 4,
            size_x: 1,
            size_y: 1,
            gid: "C00005",
            ctype: "TButton",
            cname: "abc"
        },
        {
            col: 1,
            row: 3,
            size_x: 1,
            size_y: 1,
            gid: "C00006",
            ctype: "TButton",
            cname: "abc"
        },
        {
            col: 2,
            row: 4,
            size_x: 1,
            size_y: 1,
            gid: "C00007",
            ctype: "TButton",
            cname: "abc"
        },
        {
            col: 2,
            row: 5,
            size_x: 1,
            size_y: 1,
            gid: "C00008",
            ctype: "TButton",
            cname: "abc"
        },
        {
            col: 1,
            row: 1,
            size_x: 1,
            size_y: 1,
            gid: "C00009",
            ctype: "TButton",
            cname: "abc"
        }
      ]
	"""
}